// javamaps
// Copyright (c) 2010 Vasiu Cristina
package Utils.PathFinder;
import Core.ObjectId;

public class Step{

    private ObjectId start_;
    private ObjectId stop_;
    private double distance_;
    private ObjectId streetId_;
    public TurnDirection direction_;


    /*
    * Constructors:
    */
    public Step(){
        start_ = new ObjectId(0);
        stop_ = new ObjectId(0);
        distance_ = 0;
        direction_ = TurnDirection.GoAhead;
        streetId_ = new ObjectId(0);
    }
    public Step(ObjectId start, ObjectId stop, double distance , 
            ObjectId streetId, TurnDirection direction){
        start_ = start;
        stop_  =stop;
        distance_ = distance;
        streetId_ = streetId;
        direction_ = direction;

    }

     /*
      * Get&Set Methods:
      */

    public ObjectId Start(){ return start_; }
    public void SetStart(ObjectId start_) { this.start_ = start_; }

    public ObjectId StreetId(){ return streetId_; }
    public void SetStreetID(ObjectId streetId) { this.streetId_ = streetId; }

    public ObjectId Stop(){ return stop_; }
    public void SetStop(ObjectId stop_) { this.stop_ = stop_; }
    
    public double Distance() { return distance_; }    
    public void SetDistance(double distance_) { this.distance_ = distance_; }
    
    public TurnDirection Direction() { return direction_; }    
    public void SetDirection(TurnDirection direction_){
        this.direction_ = direction_;
    }
}
